#include "libums.h"


bool open(char *addr,int port,char *user, char *passwd)
{
    _dbase = new UMSDatabase(addr,port);
    qDebug() <<addr<<port<< user << passwd;
    bool res = _dbase->open(user,passwd);
    qDebug() << res;
    return res;
    //return true;
}

char *databaseStruct(char *name)
{
    if(!_dbase) return 0;

    return _dbase->databaseStruct(name);
}
